Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Write  Computer  Configuration  Information  to  an  HTML  File  

 Content of Write Computer Configuration Information to an HTML File.ps1
MD5 Hash: F43D6A52683A535F74EAD093F4D82238
$body = $null
$computer = "localhost"
$System = Get-WmiObject -Class win32_computersystem -ComputerName $computer
$processor = Get-WmiObject -Class win32_processor -ComputerName $computer
$video = Get-WmiObject -Class win32_videocontroller -ComputerName $computer
$disk = [wmi]"\\$computer\root\cimv2:win32_logicaldisk.deviceID='c:'"
$body += "Processor speed " + $processor.CurrentClockSpeed + "
"
$body += "Video ram (meg): " + $video[0].AdapterRAM/1mb + "
"
$body += "Free disk space(gig): " + $disk.FreeSpace/1gb + "
"
$body += "Make: " + $system.Manufacturer + "
"
$body += "Model: " + $system.Model + "
"
$body += "Ram(meg): " + [int]$system.TotalPhysicalMemory/1mb
$head = ""
$head += "

System report for $computer


"
ConvertTo-Html -body $body -Head $head|
Out-File -FilePath "C:\fso\$computer.html"


   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a